import { createApp } from 'vue'
import router from './router/index'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import * as Icons from '@element-plus/icons-vue'
import App from './App.vue'
import { toLine } from './utils'
import lUI from './components'
import './mock'
const app = createApp(App)
//全局注册图标
for(let i in Icons) {
  //注册全局组件
  app.component(`el-icon-${toLine(i)}`,((Icons as any)[i]))
}

app.use(router).use(ElementPlus).use(lUI)
app.mount('#app')
